package kGeom;


public abstract class kElement {

	public int[] colorArr = new int[] {255, 255, 255, 255};
	
	public boolean isValid = true;	
	
	public static float tolerence = 0.0001f;
	
	public static kElement invalidElement(){
		kVec e = new kVec();
		e.isValid = false;
		return e;
	}
	
	public void setColor( int value ){
		colorArr = new int[] {value, value, value, 255};
	}
	
	public void setColor( int value , int alpha ){
		colorArr = new int[] {value, value, value, alpha};
	}
	
	public void setColor( int red ,  int green ,  int blue ){
		colorArr = new int[] {red, green, blue, 255};
	}
	
	public void setColor( int red ,  int green ,  int blue , int alpha ){
		colorArr = new int[] {red, green, blue, alpha};
	}

}
